package com.ym.soso.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.ym.core.utils.tkmybatis.BaseSVImpl;
import com.ym.medical.dao.HosSosDao;
import com.ym.medical.domain.entity.HosSosEntity;
import com.ym.medical.domain.param.HosSosQryParam;
import com.ym.medical.domain.vo.HosSosVo;
import com.ym.medical.service.IHospitalSV;
import com.ym.soso.service.IHosSosSV;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author wenbo
 * @Date 2020/8/24 15:39
 **/
@Service
public class HosSosSVImpl  extends BaseSVImpl<HosSosEntity, HosSosDao> implements IHosSosSV {


    @Autowired
    private IHospitalSV iHospitalSV;

    /**
     *急救医院列表
     * @param pageNum
     * @param pageSize
     * @param sosQryParam
     * @return
     */
    @Override
    public PageInfo<HosSosVo> hosSos(int pageNum, int pageSize, HosSosQryParam sosQryParam) {
        PageHelper.startPage(pageNum, pageSize);
        List<HosSosVo> hosSosVos = iHospitalSV.hosSos(sosQryParam);
        return new PageInfo<>(hosSosVos);
    }
}
